﻿using Inaction.Criteria;
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Inaction.Business.Security
{
    [Serializable]
    public class DepartmentCriteria : Inaction.Criteria.CriteriaBase
    {
        [CriteriaField("Name", Logic = CriteriaLogic.And, Operate = CriteriaOperate.Like)]
        private string nameLike;
        [Display(Description = "名称"), DisplayName("名称")]
        public string NameLike
        {
            get { return nameLike; }
            set { nameLike = value; }
        }

        [CriteriaField("Code", Logic = CriteriaLogic.And, Operate = CriteriaOperate.Like)]
        private string codeLike;
        [Display(Description = "编号"), DisplayName("编号")]
        public string CodeLike
        {
            get { return codeLike; }
            set { codeLike = value; }
        }
    }
}
